-- GENERATED SPELL FOR [Scarlet Fleet Guardian] --


function spell0_28856(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(25710,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28856', 574, 1)
end

function spell1_28856(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(52566,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28856', 601, 1)
end

function Sorts_28856(pUnit, Event)
local choix_sorts_28856 = math.random(0, 1)
if choix_sorts_28856 == 0 then
pUnit:RegisterEvent('spell0_28856', 1, 1)
end
if choix_sorts_28856 == 1 then
pUnit:RegisterEvent('spell1_28856', 1, 1)
end
end

function mob28856_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28856', math.random(1500, 3000), 1)
end

function mob28856_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28856_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28856_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28856, 1, 'mob28856_Action')
RegisterUnitEvent(28856, 2, 'mob28856_Leave')
RegisterUnitEvent(28856, 3, 'mob28856_Kill')
RegisterUnitEvent(28856, 4, 'mob28856_Die')
